import request from "@/utils/request";

function login(number, password) {
    return request({
        method: 'POST',
        url: '/user/login',
        data: {
            'number': number,
            'password': password
        }
    });
}

function logout() {
    return request({
        method: 'POST',
        url: '/user/logout',
    });
}

export default {
    login,
    logout
}